package com.liang.controller;


import com.liang.pojo.User;
import com.liang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;


@Controller
public class UserController {

    @Autowired
    private UserService userService;

    public List<User> findAll() {

        return userService.findAll();
    }
}
